<?php

namespace Common\Controller;
use Common\Controller\PcHomeBaseController;

class MemberbaseController extends PcHomeBaseController
{
    protected $user_model;
    protected $user;
    protected $userid;

    protected function _initialize() {
        parent::_initialize();
        //$this->check_login();
        //$this->check_user();
        if (x_is_user_login()) {
            $this->userid = x_get_user_id();
            $this->user_model = D("Common/User");
            $this->user = $this->user_model->where(array('user_id' => $this->userid))->find();
        }
    }
}